//
//  XLMainDefine.h
//  Main
//
//  Created by 于鹏 on 2017/8/10.
//  Copyright © 2017年 YIVIEW. All rights reserved.
//

#ifndef XLMainDefine_h
#define XLMainDefine_h

//图片路径
//通过copy文件夹方式获取图片路径
#define XLImageSrcName(file) [@"Main.bundle" stringByAppendingPathComponent:file]
//通过cocoapods下载安装获取图片路径
#define XLImageFrameworkSrcName(file)  [@"Frameworks/Main.framework/Main.bundle" stringByAppendingPathComponent:file]
#define XLImage(file) [UIImage imageNamed:XLImageSrcName(file)] ? :[UIImage imageNamed:XLImageFrameworkSrcName(file)]

//#define XLMainImageBundle [NSBundle bundleWithPath:[[NSBundle bundleForClass:[self class]] pathForResource:@"Main" ofType:@"bundle"]]
//#define XLImage(file)  [UIImage imageWithContentsOfFile:[XLMainImageBundle pathForResource:file ofType:@"png"]]

#endif /* XLMainDefine_h */
